package com.ruoyi.xysl.service;

import com.xysl.api.domain.XyslUser;

import java.util.List;

/**
 * 用户Service接口
 *
 * @author xysl
 * @date 2024-12-27
 */
public interface ISysXyslUserService
{
    /**
     * 查询用户
     *
     * @param id 用户主键
     * @return 用户
     */
    public XyslUser selectXyslUserById(Long id);

    public XyslUser selectXyslUserByAccount(String account);

    /**
     * 查询用户列表
     *
     * @param xyslUser 用户
     * @return 用户集合
     */
    public List<XyslUser> selectXyslUserList(XyslUser xyslUser);

    /**
     * 新增用户
     *
     * @param xyslUser 用户
     * @return 结果
     */
    public int insertXyslUser(XyslUser xyslUser);

    /**
     * 修改用户
     *
     * @param xyslUser 用户
     * @return 结果
     */
    public int updateXyslUser(XyslUser xyslUser);

    /**
     * 批量删除用户
     *
     * @param ids 需要删除的用户主键集合
     * @return 结果
     */
    public int deleteXyslUserByIds(Long[] ids);

    /**
     * 删除用户信息
     *
     * @param id 用户主键
     * @return 结果
     */
    public int deleteXyslUserById(Long id);

    int resetPwd(XyslUser user);
}
